<!DOCTYPE html>
<html>
<head>
	<title>豆增量</title>
    <meta content="utf-8" http-equiv="encoding">
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
	<link type="text/css" rel="stylesheet" href="css/style.css">
	<script defer charset="utf-8" type="text/javascript" src="js/lib/break_infinity.js"></script>
	<script defer charset="utf-8" type="text/javascript" src="js/game/core/init.js"></script>
	<script defer charset="utf-8" type="text/javascript" src="js/game/core/iterate.js"></script>
	<script defer charset="utf-8" type="text/javascript" src="js/game/core/autowriter.js"></script>
	<script defer charset="utf-8" type="text/javascript" src="js/game/core/prestige.js"></script>
	<script defer charset="utf-8" type="text/javascript" src="js/game/core/shrinkpow.js"></script>
	<script defer charset="utf-8" type="text/javascript" src="js/game/core/tree.js"></script>
	<script defer charset="utf-8" type="text/javascript" src="js/game/saving-zh.js"></script>
	<script defer charset="utf-8" type="text/javascript" src="js/game/loading-zh.js"></script>
	<script defer charset="utf-8" type="text/javascript" src="js/game/ui-zh.js"></script>
	<script defer charset="utf-8" type="text/javascript" src="js/game/notation.js"></script>
	<script defer charset="utf-8" type="text/javascript" src="js/game/tab.js"></script>
</head>
<body id="body">
	<a href="index.html" target="_newtab">English</a> | <a href="index-zh.html" target="_newtab">中文</a> | <a href="https://github.com/GSUI5051/Bean-Incremental" target="_newtab">源代码</a><br>
	<p>从「豆」开始<br>
	把它分成：一口丷一<br>
	然后把数字「一」用大写数字「壹」表示, 就有了：壹口丷壹<br>
	把大写数字「壹」分成：士冖豆<br>
	一次迭代就这样完成了</p>
	<br>
	<div>
		<button onclick="player.navigation.tab = 'Characters'">汉字</button>
		<button onclick="player.navigation.tab = 'Auto'" id="autotabbtn" style="display: none;">自动书写器</button>
		<button onclick="player.navigation.tab = 'Shrink'" id="shrinktabbtn" style="display: none;">压缩</button>
		<button onclick="player.navigation.tab = 'ShrinkPow'" id="shrinkpowtabbtn" style="display: none;">压缩之力</button>
		<button onclick="player.navigation.tab = 'ShrinkTree'" id="shrinktreetabbtn" style="display: none;">技能树</button>
		<button onclick="player.navigation.tab = 'Options'">选项</button>
	</div>
	<button class="prestigebtn" id="shrinkbtn" onclick="shrink()" style="display: none; right: 0;">压缩所有的汉字<br>获得 <span id="shrinkamt">1</span> 豆奇点</button>
	<hr><br>
	<div class="tab" id="Characters">
		<span id="resources">
		你拥有 <span id="beanamt" class="item">1</span> 豆<br>
		你拥有 <span id="oneamt" class="item">0</span> 一<br>
		你拥有 <span id="squareamt" class="item">0</span> 口<br>
		你拥有 <span id="legsamt" class="item">0</span> 丷<br>
		你拥有 <span id="cmoneamt" class="item">0</span> 壹<br>
		你拥有 <span id="dirtamt" class="item">0</span> 士<br>
		你拥有 <span id="capamt" class="item">0</span> 冖<br></span>
		<br><br>
		<button class="buybtn" id="iterbtn" onclick="iterbtn()">迭代走起！</button>
		<br>
		<button class="buybtn" id="upiterbtn" onclick="upiter()">加速迭代<br>价格：<span id="upitercost">0</span> 口</button>
	</div>
	<div class="tab" id="Auto" style="display: none;">
		<table><tbody>
			<tr>
				<td><button class="upgradebtn" id="buyauto" onclick="buyAuto()">购买 <span id="bulkautoamt">1 个自动书写器</span><br>你拥有 <span id="autos">0</span> 个自动书写器<br>价格： <span id="autowritercost">1.02e3</span> 丷<br>（<span id="autocapamt">软上限为每个自动书写器写 100000 个汉字</span>）</button></td>
				<td><button class="upgradebtn" id="upauto" onclick="buyUp('12', '1e6', 'dirt')">自动书写器的工作速度加快 4 倍<br>目前速度：每秒 <span id="autointerval">4</span> 时间间隔<br>价格： <span id="upautocost">1.00e6</span> 士</button></td>
				<td><button class="upgradebtn" id="downautocost" onclick="buyUp('13', '1e7', 'square')">自动书写器的价格增速由 128 变为 80<br>价格： <span id="downautocostcost">1.00e7</span> 口</button></td>
				<td><button class="upgradebtn" id="upautocap" onclick="buyUp('14', '1e8', 'cap')">基于自动书写器数量，提高自动书写器的软上限<br>目前加成：提高 <span id="autocapboost">1.00</span> 倍<br>价格： <span id="upautocapcost">1.00e8</span> 冖</button></td>
			</tr>
			<tr id="secondrow" style="display: none;">
				<td><button class="upgradebtn" id="upautospeed" onclick="buyUp('21', '1e9', 'dirt')">「士」字的数量提高自动书写器的工作速度<br>目前加成：提高 <span id="autospeedboost">1.00</span> 倍<br>价格： <span id="upautospeedcost">1.00e9</span> 士</button></td>
				<td><button class="upgradebtn" id="bulkmore" onclick="buyUp('22', '1e12', 'legs')">获得双倍的自动书写器<br>价格： <span id="bulkmorecost">1.00e12</span> 丷</button></td>
				<td><button class="upgradebtn" id="replicate" onclick="buyUp('23', '1e20', 'cap')">每个自动书写器以每秒 0.01 个的速度生产其自身<br>价格： <span id="replicatecost">1.00e20</span> 冖</button></td>
				<td><button class="upgradebtn" id="removeautocap" onclick="buyUp('24', '1e30', 'cmone')">移除自动书写器的软上限，然而，汉字越多，自动书写器的工作速度越慢。与自动书写器上限有关的升级影响它们的工作速度。<br>价格： <span id="removeautocapcost">1.00e30</span> 壹</button></td>
			</tr>
			<tr id="thirdrow" style="display: none;">
				<td><button class="upgradebtn" id="upautospeed2" onclick="buyUp('31', '1e1000', 'dirt')">基于压缩次数，提高自动书写器的工作速度<br>目前加成：提高 <span id="autospeedboost2">1.00</span> 倍<br>价格： <span id="upautospeed2cost">1.00e1000</span> 士</button></td>
				<td><button class="upgradebtn" id="upautospeed3" onclick="buyUp('32', '1e1500', 'dirt')">自动书写器的工作速度为原来的 100 倍<br>价格： <span id="upautospeed3cost">1.00e1500</span> 士</button></td>
				<td><button class="upgradebtn" id="replicate2" onclick="buyUp('33', '1e2000', 'cap')">每个自动书写器以每秒 0.05 个的速度生产其自身<br>价格： <span id="replicate2cost">1.00e2000</span> 冖</button></td>
				<td><button class="upgradebtn" id="givedysideas" onclick="buyUp('34', '1e30000', 'cmone')">灵感没了，帮帮作者<br>价格： <span id="givedysideascost">1.00e30000</span> 壹</button></td>
			</tr>
		</tbody></table>
	</div>
	<div class="tab" id="Shrink">
		你拥有 <span id="cmpcbeanamt" style="color: #de2">0</span> 豆奇点
		<br><br>
		<table><tbody>
			<tr>
				<td><button class="supgradebtn" id="shrinkprice" onclick="buySup('11', '1')">所有自动书写器升级的价格便宜 5 倍，自动书写器的价格增速降低 40%<br>价格： 1 豆奇点</button></td>
				<td><button class="supgradebtn" id="moreauto" onclick="buySup('12', '1')">解锁更多的自动书写器升级<br>价格： 1 豆奇点</button></td>
				<td><button class="supgradebtn" id="keepauto" onclick="buySup('13', '10')">所有的自动书写器和自动书写器升级在压缩后保留<br>价格： 10 豆奇点</button></td>
				<td><button class="supgradebtn" id="unlockshrinkpow" onclick="buySup('14', '20')">解锁压缩之力<br>价格： 20 豆奇点</button></td>
			</tr>
			<tr id="secondsing" style="display: none;">
				<td><button class="supgradebtn" id="moresing" onclick="buySup('21', '1e100')">基于压缩次数，提高豆奇点获得量<br>目前加成：提高 <span id="singboost2">1.00</span> 倍<br>价格： 1.00e100 豆奇点</button></td>
				<td><button class="supgradebtn" id="morepower" onclick="buySup('22', '1e150')">基于豆奇点数量，提高压缩之力的获得量<br>目前加成：提高 <span id="shringpowboost">1.00</span> 倍<br>价格： 1.00e150 豆奇点</button></td>
				<td><button class="supgradebtn" id="keepsing" onclick="buySup('23', '1e230')">每秒获得已有豆奇点的 1%<br>价格： 1.00e230 豆奇点</button></td>
				<td><button class="supgradebtn" id="helpdysweight" onclick="buySup('24', '1e2000')">给作者投食<br>价格： 1.00e2000 豆奇点</button></td>
			</tr>
		</tbody></table>
	</div>
	<div class="tab" id="ShrinkPow">
		<span style="cursor: pointer;" title="Making characters smaller makes it faster to iterate and autowrite.">你拥有 <span id="shrinkpowamt" style="color: #ec2">0</span> 压缩之力，汉字因此缩小 <span id="shrinkpowboost">1.00</span> 倍。</span>
		<br>
		你拥有 <span id="shrinkeramt">0</span> 压缩器。
		<br><br>
		<button class="buybtn" onclick="buyGen()" id="buyshrink">购买一个压缩器<br>价格： <span id="shrinkercost">2</span> 豆奇点</button>
		<br>
		<button class="buybtn" onclick="buyGenMax()" id="buymaxshrink">购买最大数量的压缩器</button>
		<br><br>
		<table><tbody>
			<tr>
				<td><button class="spupgradebtn" id="sing" onclick="buySPup('11', '1e3')">基于豆奇点数量，提高豆奇点获得量<br>目前加成：提高 <span id="singboost">1.00</span> 倍<br>价格： 1.00e3 压缩之力</button></td>
				<td><button class="spupgradebtn" id="morepow" onclick="buySPup('12', '2e3')">获得 5 倍的压缩之力<br>价格： 2.00e3 压缩之力</button></td>
				<td><button class="spupgradebtn" id="powboost" onclick="buySPup('13', '2e4')">压缩之力的效果公式中的 ^2 变为 ^3<br>价格： 2.00e4 压缩之力</button></td>
				<td><button class="spupgradebtn" id="unlocktree" onclick="buySPup('14', '1e5')">解锁技能树<br>价格： 1.00e5 压缩之力</button></td>
			</tr>
		</tbody></table>
	</div>
	<div class="tab" id="ShrinkTree">
		<div style="width: 100%" align="center">
			<button class="treebtn" id="11rstc800" onclick="buyStudy('11', '1e800', 'st')">解锁第二行压缩升级<br>价格： 1.00e800 士</button>
			<br><br><div style="display: flex; align-items: center; justify-content: center;">
				<button class="treebtn" id="21r11c1000" onclick="buyStudy('21', '1e1000', '11')">提高自动书写器的软上限<br>价格： 1.00e1000 士</button>
				<div style="width: 0.4em"></div>
				<button class="treebtn" id="22r11c1000" onclick="buyStudy('22', '1e1000', '11')">自动购买自动书写器和压缩器<br>价格： 1.00e1000 士</button>
			</div>
			<br><div style="display: flex; align-items: center; justify-content: center;">
				<button class="treebtn" id="31r21c2000" onclick="buyStudy('31', '1e2000', '21')">每购买 10 个压缩器，压缩器的效果变为原来的 3 倍，压缩之力的效果变为原来的 4 次方<br>价格： 1.00e2000 士</button>
				<div style="width: 0.4em"></div>
				<button class="treebtn" id="32r22c2000" onclick="buyStudy('32', '1e2000', '22')">解锁第三行自动书写器升级<br>价格： 1.00e2000 士</button>
			</div>
			<br><div style="display: flex; align-items: center; justify-content: center;">
				<button class="treebtn" id="41r31c2100" onclick="buyStudy('41', '1e2100', '31')">豆奇点获得量的公式变得更好<br>价格： 1.00e2100 士</button>
				<div style="width: 0.4em"></div>
				<button class="treebtn" id="42r32c2200" onclick="buyStudy('42', '1e2200', '32')">每购买一个自动书写器，自动书写器的工作速度加快 1.1 倍<br>价格： 1.00e2200 士</button>
			</div>
			<br><div style="display: flex; align-items: center; justify-content: center;">
				<button class="treebtn" id="51r41c2500" onclick="buyStudy('51', '1e2500', '41')">基于研究数量，提高豆奇点获得量<br>价格： 1.00e2500 士</button>
				<div style="width: 0.4em"></div>
				<button class="treebtn" id="52r41c2500" onclick="buyStudy('52', '1e2500', '41')">压缩器的价格增速由 2 降低为 1.5<br>价格： 1.00e2500 士</button>
				<div style="width: 0.4em"></div>
				<button class="treebtn" id="53r42c2500" onclick="buyStudy('53', '1e2500', '42')">游戏结束。<br>价格： 1.00e2500 士</button>
				<div style="width: 0.4em"></div>
				<button class="treebtn" id="54r42c15000000" onclick="buyStudy('54', '1e15000000', '42')">这是一个占位的按钮。<br>价格： 1.00e15000000 士</button>
			</div>
		</div>
		<br><br><br><br>
	</div><button class="treebtn" id="str0c0" style="display: none; position: absolute;"></button>
	<div class="tab" id="Options" style="display: none; width: 100%" align="center">
		<button class="optionsbtn" onclick="save()">手动存档</button>
		<button class="optionsbtn" onclick="reset()">重置存档</button>
		<button class="optionsbtn" onclick="expo()">导出存档</button>
		<button class="optionsbtn" onclick="impo()">导入存档</button>
	</div>
	<div style="width: 30vw; height: 20px; border: 3px solid #fff; border-radius: 3px; position: fixed; bottom: 0;"><div style="width: 2%; height: 100%; background: linear-gradient(to right, #191, #4d4);" id="iterbar"></div></div>
	<textarea id="savetext" style="display: none;"></textarea>
</body>
</html>
